package J2;

import org.testng.annotations.*;

public class Test_2 {
    @Test
    @Parameters({"url","webdriver"})
    public void test_06(String url1,String webdriver1){
        System.out.println(url1+"-----"+webdriver1);

    }
//    配置超时等待,enabled = false跳过这个测试用例,enabled = true执行这个测试用例
    @Test(timeOut = 3000,enabled = false)
    public void test_07() throws InterruptedException {
        Thread.sleep(5000);
        System.out.println("用例m7！");
    }
    @Test
    public void test_08(){
        System.out.println("用例m8！");
    }
    @Test
    public void test_09(){
        System.out.println("用例m9！");
    }
    @Test
    public void test_10(){
        System.out.println("用例m10！");
    }
//    类里面的所有方法全部执行前后，类里面第一个方法前，最后一个方法后各执行一次，共两次
    @BeforeClass
    public void test_11(){
        System.out.println("M11!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
    }
    @AfterClass
    public void test_12(){
        System.out.println("M12!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
    }
//    类里面每个方法执行前后都会执行一次
    @BeforeMethod
    public void test_13(){
        System.out.println("M13&&&");
    }
    @AfterMethod
    public void test_14(){
        System.out.println("M14&&&");
    }

}
